<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

		<%
		   String msg=(String)session.getAttribute("msg");
		   if(msg!=null){
		%>
		<div><%=msg %></div>
		<%
		   }
		%>

<form action="login1" method="post">
	登录名：<input type="text" name="userName">
	<br>
	密码：<input type="text" name="pwd">
	<br>
<button>登录</button>
</form>

</body>
</html>